package oop4;

/**
 * @author oldliu
 * @since 1.0
 */
public final class Penguin extends Pet {
    public Penguin(String name, int love, int health, String sex) {
        super(name, love, health, sex);
    }

    public void swim(){
        System.out.println(getName()+"海里游来游去");
    }

    @Override
    public void print() {
        System.out.println("这是一只宠物企鹅");
        super.print();
    }
}
